package com.cz.background.dto.common.user;

import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import org.hibernate.validator.constraints.Range;

public class UpdateUserDTO {

    @NotBlank(message = "用户名不能为空")
    @Size(min=1, max=32, message = "id长度必须为32个字符")
    private String id;

    @NotBlank(message = "用户名不能为空")
    @Size( max = 30, message = "用户名长度不能超过30个字符")
    private String name;        // 用户姓名

    @NotBlank(message = "密码不能为空")
    @Size( max = 100, message = "用户名长度不能超过100个字符")
    private String password;    // 用户密码

    @NotNull(message = "状态不能为空")
    @Range(min = 0, max = 1, message = "状态必须为0或1")
    private Integer status;     // 用户状态




    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
